<li class="checklist_item">
	<% new_or_existing = checklist_item.new_record? ? 'new' : 'existing' %>
	<% prefix = "checklist[#{new_or_existing}_checklist_item_attributes[]" %>
	<% fields_for prefix, checklist_item do |i| %>
		<%= i.text_field :task_text %>
		<span class='button'>
			<%= link_to_function "remove", "$(this).up('.checklist_item').remove();" %>
		</span>
	<% end %>
</li>